<?php

namespace app\models;

use app\traits\ModelTrait;

class TagToBlog extends \Phalcon\Mvc\Model
{
    use ModelTrait;

    const TABLE = 'tag_to_blog';

    /**
     *
     * @var integer
     * @Primary
     * @Column(type="integer", length=10, nullable=false)
     */
    public $tag_id;

    /**
     *
     * @var integer
     * @Primary
     * @Column(type="integer", length=10, nullable=false)
     */
    public $blog_id;

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return self::TABLE;
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return TagToBlog[]
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return TagToBlog
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
